package com.cpems.system.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cpems.system.domain.EnergyProjectSync;
import com.cpems.system.domain.vo.EnergyProjectSyncVo;
import com.cpems.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 项目总能效同步Mapper接口
 *
 * @author lyonfive
 * @date 2025-03-26
 */
public interface EnergyProjectSyncMapper extends BaseMapperPlus<EnergyProjectSyncMapper, EnergyProjectSync, EnergyProjectSyncVo> {

    /**
     * 分页查询项目能效列表
     * @param page
     * @param queryWrapper
     * @return
     */
    Page<EnergyProjectSync> selectPageEnergySyncList(@Param("page") Page<EnergyProjectSync> page, @Param(Constants.WRAPPER) Wrapper<EnergyProjectSync> queryWrapper);

    /**
     * 查询项目能效列表
     * @param queryWrapper
     * @return
     */
    List<EnergyProjectSync> selectEnergySyncList(@Param(Constants.WRAPPER) Wrapper<EnergyProjectSync> queryWrapper);

//    // 嵌套对象映射（需定义 AddressMapper）
//    @Mapping(target = "EnergyProjectSyncVo", source = "EnergyProjectSync")
//    EnergyProjectSyncVo toVOWithAddress(EnergyProjectSync user);
}
